package com.carrie.mapper;

import com.carrie.model.Bag;
import com.carrie.model.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BagsWithGoodsMapper {
    List<Bag> getAllBagsWithGoods();
    Integer insertGoodsIntoBag(@Param("bagId") Integer bagId, Goods goods);
    Integer insertBag(@Param("bagId") Integer bagId, @Param("bagIcon") String bagIcon, @Param("bagName") String bagName);
}